package com.itheima.pojo;

import java.io.Serializable;

public class subscribe implements Serializable {
    private Integer id;
    private String membername; //会员名称
    private String phoneNumber; //手机号
    private String orderDate; //预约日期
    private String orderType; //预约类型
    private String orderStatus; //预约状态
    private String setmealname; //套餐名称
    private Integer memberId; //会员id
    private Integer setmealId; //套餐id
    private Integer oderId; //预约详情id

    private boolean value;

    public boolean isValue() {
        if (orderStatus.equals("未到诊")) {
            this.value = false;
        } else {
            this.value = true;
        }

        return value;
    }

    public subscribe() {
    }

    public subscribe(Integer id, String membername, String phoneNumber, String orderDate, String orderType, String orderStatus, String setmealname, Integer memberId, boolean value) {
        this.id = id;
        this.membername = membername;
        this.phoneNumber = phoneNumber;
        this.orderDate = orderDate;
        this.orderType = orderType;
        this.orderStatus = orderStatus;
        this.setmealname = setmealname;
        this.memberId = memberId;
        this.value = value;
    }

    public Integer getOderId() {
        return oderId;
    }

    public void setOderId(Integer oderId) {
        this.oderId = oderId;
    }

    public Integer getSetmealId() {
        return setmealId;
    }

    public void setSetmealId(Integer setmealId) {
        this.setmealId = setmealId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMembername() {
        return membername;
    }

    public void setMembername(String membername) {
        this.membername = membername;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getSetmealname() {
        return setmealname;
    }

    public void setSetmealname(String setmealname) {
        this.setmealname = setmealname;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public void setValue(boolean value) {
        this.value = value;
    }
}
